home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / RW_VIDEO.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  46 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   RW_VIDEO.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NBT1.INC"
  19. COLOR 7, 0
  20. CLS
  21. ? "┌────────────────────────────────────────────────────────────────────────
  22. ? "│ fTBoxREAD$ ( Row?, Col?, Rows?, Cols?, Attrs? )
  23. ? "│  TBoxWRITE ( SavedScrn$ )
  24. ? "├─────────────────────────────────────────────────────────────────────────────
  25. ? "│ These routines were the downfall of the windowing routines. As they are
  26. ? "│ so fast and compact, the requirements for a complete window popping unit are
  27. ? "│ gone forever! Each routine that needs to 'pop' over a screen may now quickly
  28. ? "│ and easily do it all themselves! There are 2 ways of reading the screen.
  29. ? "│ If Attrs? = 0 then only the text is read else both text and attributes are
  30. ? "│ stored.
  31. ? "└─────────────────────────────────────────────────────────────────────────────
  32.                                             '┌────────────────────────────
  33.   TBoxFILL 12, 2, 13, 78, 177, 15           '│ fill the screen with ▒'s
  34.   DELAY 2                                   '│ Hollywood strikes again!
  35.                                             '│
  36.   D$ = " PRESS ANY KEY TO CONTINUE. "       '│ pop a message
  37.   Scrn$ = fTBoxREAD$( 17, 26, 3, 30, 1 )    '│ save the area under the box
  38.   TBoxDRAW 17, 26, 3, 30, 1, 15             '│ draw a box
  39.   Tprint 18, 27, D$, 12                     '│ print the message
  40.                                             '│
  41.   WHILE NOT INSTAT : WEND                   '│ get a key press
  42.   TBoxWRITE Scrn$                           '│ restore the screen data
  43.                                             '│
  44.                                             '│ This is getting too easy!!!
  45.                                             '│ Let's go back to GW-BASIC!
  46.